#!/bin/bash
diskfullpath=$1-$2
sed -i "s|^/dev/mapper/${diskfullpath}|#&|" /etc/fstab
UUID=$(blkid /dev/mapper/${diskfullpath} | awk '{split($2,arr,"\"");print arr[2]}') ; echo "UUID=$UUID $3 xfs defaults,nofail 0 0" >> /etc/fstab